Skip to main content

Recording robotic automations

2 Tasks

15 mins

Pega Robotic Automation 22.1
Visible to: All users
Beginner Pega Robotic Automation 22.1 Robotic Process Automation English

Scenario

You are developing a robotic project for customer service representatives from the Robotic Banking industry. The customer service representatives use two separate applications: the Banker Insight desktop application and the Pega Finance web application. You have already created the project and added the applications to the project. Your next task is to develop login automation for each application. To accomplish this, you record the automations.

Complete the following tasks:

  • Record the Banker Insight log-in automation called BI_Login using automatic step creation and edit the steps to use input parameters.
  • Record the Pega Finance log-in automation called Finance_Login using targeted step creation.

Both automations should use input parameters called username and password. To log in to both applications, enter the user name pega and password pega.

Note: This is a continuation of the previous challenge, Creating projects and adding applications. If you did not complete this challenge, click the following link to save the file to your desktop and unzip the folder to extract the files.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Record the Banker Insight login using automatic step creation

  1. In Pega Robot Studio, open the Robotic Banking project.
    Note: The starter project includes a configured BankerInsight application. The value of the Path field must match the location of BankerInsight on your local computer for the project to function properly. In the BankerInsight application, change the value of the Path to the location of your BankerInsight application.
  2. On the start screen of the project, click Add > Automation to open the Add new automation dialog box.
    Screenshot showing the location of Automation within the Add menu in Pega Robot Studio.
  3. In the Add new automation dialog box, in the Automation name field, enter BI_Login.
  4. Click Add to add the new automation to your project.
    Screenshot showing the Add new automation dialog with BI_Login entered in the input field.
  5. Click Record to open the Recording assistant and begin recording the automation.
    Screenshot showing the Record button on the BI_Login tab
    1. In the Recording assistant, click Add Application >  Add existing application to open the Include in palette window.
      Screenshot showing the Add existing application option in the Add applcation menu
    2. In the Include in palette window, on the Application tab, in the BankerInsight row, click Add next to add the Banker Insight desktop application to the recording.
      Screenshot showing the Applications tab in the Add application dialog box
    3. Click Done to complete adding the application to the automation and launch the Banker Insight desktop application.
    4. Click the User Name input field. The Gear icon is displayed with a green background to indicate that automatic step creation is active.
      Screenshot showing the green gear icon next to a control field indicating automatic step creation is available.
    5. In the User Name field, enter pega.
      Note: You edit this step later to use an input parameter.
    6. Repeat steps 5d-5e for the Password input field.
    7. Use the Tab button to unfocus on the password field, and click Login to show the Client Details screen.
    8. In the Recording assistant, click Stop to stop recording the automation. The Recording assistant shows the recorded steps.
      Screenshot showing recorded steps in the Recording assistant in Pega Robot Studio.
Note:  Once you add the button click, the Login detected banner displays in the Recording assistant. No other interactions with the Actions button on the banner are necessary for this exercise. 
  1. In the Recording assistant, on the txtUserName step, click the More icon, and then select Edit to show the step editor.
    Screenshot showing the Edit option in the More menu in the Recording Assistant
  2. In the step editor, configure the following settings:
  3. In the Value source list, select Input parameter.
    Screenshot showing the Input parameter option in the Value source dropdown in the step editor.
  4. In the Value section, click Create new to open the Create input parameter dialog box.
    Screenshot showing Create new in the Value dropdown of the step editor.
    1. In the Create input parameter dialog box, in the Name field, enter username.
    2. Click Submit to configure the step to use an input parameter in the automation.
      Screenshot showing the Create input parameter dialog box in Pega Robot Studio.
  5. Click Save to save the changes you made to the step.
  6. Repeat steps 6-9 for the txtPassword step by naming the input parameter password and setting the parameter type to Sensitive Data.
  7. On the Recording assistant, click Finish Recording to add the steps to the automation.
    Screenshot showing the Finish Recording button in the Recording assistant
    Screenshot showing the design blocks in the BI_Login automation after recording the automation.

2 Record the Pega Finance login using targeted step creation

  1. On the toolbar, click Project to return to the Project Explorer.
  2. On the Project Explorer, on the toolbar, click Add > Automation to open the Add new automation dialog box.
    Screenshot showing the location of Automation within the Add menu in Pega Robot Studio.
  3. In the Add new automation dialog box, in the Automation name field, enter Finance_Login.
  4. Click Add to add the new automation to your project.
    Screenshot showing the Add new automation dialog with Finance_Login entered in the input field.
  5. Click Record to open the Recording assistant and begin recording the automation.
    Screenshot showing the Record button on the Finance_Login tab.
  6. In the Recording assistant, click Add Application >  Add existing application to open the Include in palette window.
    Screenshot showing the Add existing application option in the Add applcation menu
  7. In the Include in palette window, on the Application tab, in the Pega Finance row, click Add to add the Pega Finance web application to the recording.
    Screenshot showing the Applications tab in the Add application dialog box
  8. Click Done to complete adding the application to the automation and launch the Pega Finance web application.
  9. Hover your cursor over the User Name input field. The Gear icon is displayed a blue background to indicate that only targeted step creation is available.
    Screenshot showing the blue gear icon on the Finance login page.
  10. Click the Gear to display the step editor.
  11. In the Name field, enter txtUserName to change the name of the control.
  12. In the Value source list, select Input parameter.
  13. In the Value section, click Create new to open the Create input parameter dialog box.
    1. In the Create input parameter dialog box, in the Name field, enter username.
    2. Click Submit to configure the step to use an input parameter in the automation.
      Screenshot showing the completed step editor dialog box for the txtUserName control.
  14. Click Save to save the changes you made to the step.
  15. Repeat steps 8-12 for the Password field and use the information in the following table to configure the control.
    Field Value
    Name txtPassword
    Value source Input parameter
    Value password
    Type Sensitive Data
  16. Hover your cursor over the Sign In button, and then click the Gear icon to open the step editor.
    1. In the Name field, enter btnSignIn to change the name of the control.
    2. In the Action list, confirm that PerformClick is selected.
      Screenshot showing the completed step editor dialog box for the btnSignIn control.
    3. Click Save to save the changes you made to the step.
  17. In the Recording assistant, click Finish Recording to stop recording the automation. The automation designer shows the recorded steps.
    Screenshot showing the design blocks in the Finance_Login automation after recording the automation.

Confirm your work

  1. In the automation designer window, open the BI_Login automation.
  2. In the upper right, click Test to display the Testing automation dialog box.
    Screenshot showing the Test button on the BI_Login automation toolbar.
  3. In the Testing automation dialog box, in the username and password fields, enter pega.
    Screenshot showing the filled out testing automation dialog box.
  4. Click Test to test the automation. The application opens and logs into the Banker Insight desktop application.
    Screenshot showing the test completed dialog box
  5. Click Done to exit the testing mode.
  6. Repeat steps 1-5 for the Finance_Login automation.

This Challenge is to practice what you learned in the following Module:


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice